package com.gosophia.metadataEngine.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.gosophia.commons.web.action.BaseSupportAction;
import com.gosophia.metadataEngine.dto.MetaDataTableDto;
import com.gosophia.metadataEngine.ws.MetadataEngineWebService;
/**
 * 编辑元数据表
 * @author wangxinbing
 * @since 2011-5-20
 */
@Controller("EditMetaDataTableAction")
@Scope("prototype")
public class EditMetaDataTableAction extends BaseSupportAction {
	
	private MetaDataTableDto metaDataTableDto;
	
	@Autowired
	private MetadataEngineWebService metadataEngineWebService;
	
	@Override
	public String _execute() throws Exception {
		metadataEngineWebService.updateMetaDataTable(metaDataTableDto);
		return SUCCESS;
	}

	public MetaDataTableDto getMetaDataTableDto() {
		return metaDataTableDto;
	}

	public void setMetaDataTableDto(MetaDataTableDto metaDataTableDto) {
		this.metaDataTableDto = metaDataTableDto;
	}
    
	
}
